package com.chuqiyun.authorization.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.chuqiyun.authorization.dao.ShoppingcartDao;
import com.chuqiyun.authorization.entity.Shoppingcart;
import com.chuqiyun.authorization.service.ShoppingcartService;
import org.springframework.stereotype.Service;

/**
 * 购物车(Shoppingcart)表服务实现类
 *
 * @author mryunqi
 * @since 2023-04-19 17:07:38
 */
@Service("shoppingcartService")
public class ShoppingcartServiceImpl extends ServiceImpl<ShoppingcartDao, Shoppingcart> implements ShoppingcartService {

    /**
    * @Author: mryunqi
    * @Description: 获取购物车列表
    * @DateTime: 2023/4/28 18:37
    */
    @Override
    public Page<Shoppingcart> getShoppingCartList(Integer page, Integer size){
        Page<Shoppingcart> shoppingCart = new Page<>(page, size);
        return this.page(shoppingCart);
    }
    @Override
    public Page<Shoppingcart> getShoppingCartList(Integer page, Integer size, QueryWrapper<Shoppingcart> queryWrapper) {
        Page<Shoppingcart> shoppingCart = new Page<>(page, size);
        return this.page(shoppingCart,queryWrapper);
    }
}

